home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Utilities / MView / texture1.fx < prev    next >
Encoding:
Text File  |  2004-09-27  |  873 b   |  45 lines

  1. //
  2. // Standard texture effect
  3. // Copyright (c) 2000 Microsoft Corporation. All rights reserved.
  4. //
  5.  
  6. VECTOR Ambient;
  7. VECTOR Specular;
  8. VECTOR Diffuse;
  9. VECTOR Emissive;
  10. float Power;
  11. TEXTURE Texture0 < string Name = ""; >;
  12.  
  13. //
  14. // Technique 0 - One pass
  15. //
  16.  
  17. technique T0
  18. {
  19.  
  20.     pass P0
  21.     {        
  22.     MaterialPower = <Power>;
  23.     MaterialEmissive = <Emissive>;
  24.     MaterialAmbient = <Ambient>;
  25.     MaterialSpecular = <Specular>;
  26.     MaterialDiffuse = <Diffuse>;
  27.     // Stage0
  28.     ColorOp[0]   = Modulate;
  29.     ColorArg1[0] = Texture;
  30.     ColorArg2[0] = Current;
  31.     AlphaOp[0]   = Modulate;
  32.     AlphaArg1[0] = Texture;
  33.     AlphaArg2[0] = Current;
  34.  
  35.     MinFilter[0] = Linear;
  36.     MagFilter[0] = Linear;
  37.     MipFilter[0] = Point;
  38.  
  39.     Texture[0] = <Texture0>;
  40.  
  41.     // Stage1
  42.     ColorOp[1] = Disable;
  43.     AlphaOp[1] = Disable;
  44.     }
  45. }